package com.ruoyi.system.domain;

import lombok.*;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 中式八球比赛记录对象 billiards_game_eight_ball_record
 * 
 * @author ruoyi
 * @date 2024-12-11
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class BilliardsGameEightBallRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户ID */
    private Long id;

    /** 比赛id */
    @Excel(name = "比赛id")
    private Long gameId;

    /** 局次 */
    @Excel(name = "局次")
    private Long num;

    /** 用时（s） */
    @Excel(name = "用时", readConverterExp = "s")
    private Long time;

    /** 胜方 */
    @Excel(name = "胜方")
    private Long winMember;

    /** 负方 */
    @Excel(name = "负方")
    private Long loseMember;

    /** 得分方式 0 普胜 1炸请 2接清 3对手犯规 */
    @Excel(name = "得分方式 0 普胜 1炸请 2接清 3对手犯规")
    private String scoreMethod;

    /** 对局状态 0 开始 1结束 */
    @Excel(name = "对局状态 0 开始 1结束")
    private String status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setGameId(Long gameId) 
    {
        this.gameId = gameId;
    }

    public Long getGameId() 
    {
        return gameId;
    }
    public void setNum(Long num) 
    {
        this.num = num;
    }

    public Long getNum() 
    {
        return num;
    }
    public void setTime(Long time) 
    {
        this.time = time;
    }

    public Long getTime() 
    {
        return time;
    }
    public void setWinMember(Long winMember) 
    {
        this.winMember = winMember;
    }

    public Long getWinMember() 
    {
        return winMember;
    }
    public void setLoseMember(Long loseMember) 
    {
        this.loseMember = loseMember;
    }

    public Long getLoseMember() 
    {
        return loseMember;
    }
    public void setScoreMethod(String scoreMethod) 
    {
        this.scoreMethod = scoreMethod;
    }

    public String getScoreMethod() 
    {
        return scoreMethod;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("gameId", getGameId())
            .append("num", getNum())
            .append("time", getTime())
            .append("winMember", getWinMember())
            .append("loseMember", getLoseMember())
            .append("scoreMethod", getScoreMethod())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
